import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    model_Input: '', // 机型代码的值
    device_Input: '', // 设备代码的值
    client_Input: '', // 终端代码的值
    date_Input: '',
    radioValue: null,
  },
  mutations: {
    setModelInput(state, value) {
      state.model_Input = value;
    },
    setDeviceInput(state, value) {
      state.device_Input = value;
    },
    setClientInput(state, value) {
      state.client_Input = value;
    },
    setDateInput(state, value) {
      state.date_Input = value;
    },
    setRadioValue(state, value) {
      state.radioValue = value;
    }
  },
});